package cn.zhentao.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 
 * @TableName farm
 */
@TableName(value ="farm")
@Data
public class Farm implements Serializable {
    /**
     * 基地主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 地区
     */
    @TableField(value = "province")
    private String province;

    /**
     * 基地类型
     */
    @TableField(value = "type")
    private String type;

    /**
     * 基地名称
     */
    @TableField(value = "name")
    private String name;

    /**
     * 用户id
     */
    @TableField(value = "userid")
    private Integer userid;

    /**
     * 创建时间
     */
    @TableField(value = "createTime")
    private Date createtime;

    /**
     * 修改时间
     */
    @TableField(value = "updateTime")
    private Date updatetime;

    /**
     * 主要农作物
     */
    @TableField(value = "mainCrop")
    private String maincrop;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
    @TableField(exist = false)
    private TUser user;
}